var $ = require("../../utils/Ajax.js");
Page({
  data: {
    SystemMsg:[]
  },

  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "系统消息"
    }) 
    $.Ajax("api/mess","GET",{},function(res){
      if(res.s){
        that.setData({
          SystemMsg: res.d.message
        })
      }
    })
  },
  
  onShow: function () {

  },

  // 点击进入系统消息详情
  SystemMsgDetails: function(e){
    var Content = e.currentTarget.dataset.content;
    wx.setStorageSync('SystemMsg', Content);
    wx.navigateTo({
      url: '../SystemMsgDetails/SystemMsgDetails',
    })
  }
})